package com.sts.jdbc.model;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class JdbcConnectionInfo {

    private String name;
    private String dbType;
    private String driverClassName;
    private String url;
    private String username;
    private String password;
    private String identifier = "\"";

    /**
     * 数据库连接池初始连接数
     */
    private int initialSize = 1;
    /**
     * 数据库连接池最大连接数
     */
    private int maxActive = 20;

    public JdbcConnectionInfo() {
    }

    public JdbcConnectionInfo(String password, String username, String url, String driverClassName, String dbType, String name) {
        this.password = password;
        this.username = username;
        this.url = url;
        this.driverClassName = driverClassName;
        this.dbType = dbType;
        this.name = name;
    }
}
